package com.jinbiao.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jinbiao.dao.mapper.MemberMapper;
import com.jinbiao.model.Member;

@Component
public class MemberDaoImp implements MemberDao {
	
	//自动注入对象
	@Autowired
	MemberMapper mapper;
	
	@Override
	public Member getByUid(long uid) throws Exception {
		
		return mapper.getByUid(uid);
	}

	@Override
	public Member getByEid(Integer eid) throws Exception {
		return mapper.getByEid(eid);
	}

	@Override
	public Member getAll() {
		
		return mapper.getAll();
	}

}
